package com.glory.brepda.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.brepda.R;
import com.glory.brepda.entity.BinWorkBean;
import com.glory.brepda.entity.MultiEqpBean;
import com.glory.brepda.entity.MultimastereqpbindingBean;
import com.pda.platform.ui.ui_pdaplatform.utils_public.FreeApi_LogUtils;

import java.util.List;

import androidx.annotation.Nullable;

public class EquipmentBindingWorkAdapter extends BaseQuickAdapter<MultimastereqpbindingBean.EquipmentlistBean, BaseViewHolder> {
    public EquipmentBindingWorkAdapter(@Nullable List<MultimastereqpbindingBean.EquipmentlistBean> data) {
        super(R.layout.adapter_workbing, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MultimastereqpbindingBean.EquipmentlistBean s) {
        FreeApi_LogUtils.saveErrorMessages(s.toString(),"EquipmentBindingWorkAdapter");

        helper.setText(R.id.tvEqp,s.getEquipmentid());
        helper.setText(R.id.tvWork,s.getUdf().getReserved12());
    }
}
